package com.bprogram.controller;

import com.bprogram.pojo.Partion;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "PARTION")
public interface PartionFeign {

    /**
     * 获取分区列表
     * @param currentPage
     * @param pageSize
     * @param type 分区类别
     * @return
     */
    @PostMapping("/partion/getPartionList")
    public List<Partion> getPartionList(@RequestParam("currentPage") String currentPage, @RequestParam("pageSize") String pageSize,@RequestParam("type") String type);

    @GetMapping("/partion/getPartion")
    public Partion getPartion(@RequestParam("id") long id);
}
